package com.plus1024.ai.springaidemo.controller;

import org.springframework.ai.vectorstore.VectorStore;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class VectorController {

    final VectorStore vectorStore;
    public VectorController(VectorStore vectorStore) {
        this.vectorStore = vectorStore;
    }

    @PostMapping("vec/write")
    public String write() {
//        vectorStore.write();

        return "";
    }
}
